package cn.zkrt.iotms.feign;


import cn.zkrt.iotms.comm.Constant;
import cn.zkrt.iotms.config.FeignTokenSupportConfig;
import cn.zkrt.iotms.feign.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


@FeignClient(name = Constant.SERVICE_COMMON_CODE, configuration = FeignTokenSupportConfig.class)
public interface CommonClient {
 // /common/ConfigOptions/GetConfigByCategoryNo?categoryNo=MapConfig
    @GetMapping({"/common/ConfigOptions/GetConfigByCategoryNo"})
    Result<Map<String,Object>> getConfigByCategoryNo(@RequestParam("categoryNo")  String categoryNo);

// /common/ConfigOptions/GetSettingByCategoryNo?categoryNo=CFSConfig
    @GetMapping({"/common/ConfigOptions/GetSettingByCategoryNo"})
    Result<Map<String,Object>>  getSettingByCategoryNo(@RequestParam("categoryNo")  String categoryNo );

    // /common/GetSignalRNode
    @GetMapping({"/common/GetSignalRNode"})
    Result<Map<String,Object>>  getSignalRNode();





}
